import { h } from 'vue'
import { Modal } from '@arco-design/web-vue'
import VideoModalContent from './VideoModalContent.vue'
import type { FileItem } from '@/apis/file'

export function previewFileVideoModal(data: FileItem) {
  return Modal.open({
    title: '视频播放',
    width: 'auto',
    modalStyle: {},
    content: () => h(VideoModalContent, { data })
  })
}
